package com.chencq.module.permission.entity;

public class Permission {
	private String permissionId;
	private String name;// 名称
	private String code;// 权限代码
	private String description;// 描述
	private String icon;// 图标样式
	private String href;// 链接
	private Integer sort;// 顺序
	private Integer type;// 类型：1菜单、2按钮
	private String parentId;// 父节点

	public String getPermissionId() {
		return permissionId;
	}

	public void setPermissionId(String permissionId) {
		this.permissionId = permissionId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{\n\"permissionId\":\"");
		builder.append(permissionId);
		builder.append("\",\n\"name\":\"");
		builder.append(name);
		builder.append("\",\n\"code\":\"");
		builder.append(code);
		builder.append("\",\n\"description\":\"");
		builder.append(description);
		builder.append("\",\n\"icon\":\"");
		builder.append(icon);
		builder.append("\",\n\"href\":\"");
		builder.append(href);
		builder.append("\",\n\"sort\":\"");
		builder.append(sort);
		builder.append("\",\n\"type\":\"");
		builder.append(type);
		builder.append("\",\n\"parentId\":\"");
		builder.append(parentId);
		builder.append("\"\n}  ");
		return builder.toString();
	}
	
}
